package com.mashiro.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.mashiro.common.annotation.Excel;
import com.mashiro.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 工单管理对象 moe_work_order
 *
 * @author mashiro
 * @date 2023-04-14
 */
public class MoeWorkOrder extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 工单ID
     */
    private Long id;

    /**
     * 发送者ID
     */
    @Excel(name = "发送者ID")
    private Long senderId;

    /**
     * 发送者
     */
    @Excel(name = "发送者")
    private String senderName;

    /**
     * 接收者ID
     */
    @Excel(name = "接收者ID")
    private Long receiverId;

    /**
     * 接收者
     */
    @Excel(name = "接收者")
    private String receiverName;

    /**
     * 项目ID
     */
    @Excel(name = "项目ID")
    private Long projectId;

    /**
     * 项目
     */
    @Excel(name = "项目")
    private String projectName;
    /**
     * 申请理由
     */
    @Excel(name = "申请理由")
    private String message;

    /**
     * 类型
     */
    @Excel(name = "类型")
    private String type;

    /**
     * 初始开始时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date projectStartTime;

    /**
     * 初始结束时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date projectEndTime;

    /**
     * 期望结束时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date projectNewEndTime;

    /**
     * 初始资金
     */
    private Long projectFunding;

    /**
     * 扩充资金
     */
    private Long increaseFunding;

    /**
     * 状态
     */
    @Excel(name = "状态")
    private String status;

    /**
     * 补充附件
     */
    private String file;

    /**
     * 删除标志
     */
    private String delFlag;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getSenderId() {
        return senderId;
    }

    public void setSenderId(Long senderId) {
        this.senderId = senderId;
    }

    public Long getReceiverId() {
        return receiverId;
    }

    public void setReceiverId(Long receiverId) {
        this.receiverId = receiverId;
    }

    public Long getProjectId() {
        return projectId;
    }

    public void setProjectId(Long projectId) {
        this.projectId = projectId;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Date getProjectStartTime() {
        return projectStartTime;
    }

    public void setProjectStartTime(Date projectStartTime) {
        this.projectStartTime = projectStartTime;
    }

    public Date getProjectEndTime() {
        return projectEndTime;
    }

    public void setProjectEndTime(Date projectEndTime) {
        this.projectEndTime = projectEndTime;
    }

    public Date getProjectNewEndTime() {
        return projectNewEndTime;
    }

    public void setProjectNewEndTime(Date projectNewEndTime) {
        this.projectNewEndTime = projectNewEndTime;
    }

    public Long getProjectFunding() {
        return projectFunding;
    }

    public void setProjectFunding(Long projectFunding) {
        this.projectFunding = projectFunding;
    }

    public Long getIncreaseFunding() {
        return increaseFunding;
    }

    public void setIncreaseFunding(Long increaseFunding) {
        this.increaseFunding = increaseFunding;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getFile() {
        return file;
    }

    public void setFile(String file) {
        this.file = file;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getSenderName() {
        return senderName;
    }

    public void setSenderName(String senderName) {
        this.senderName = senderName;
    }

    public String getReceiverName() {
        return receiverName;
    }

    public void setReceiverName(String receiverName) {
        this.receiverName = receiverName;
    }

    public String getProjectName() {
        return projectName;
    }

    public void setProjectName(String projectName) {
        this.projectName = projectName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("senderId", getSenderId())
                .append("senderName", getSenderName())
                .append("receiverId", getReceiverId())
                .append("receiverName", getReceiverName())
                .append("projectId", getProjectId())
                .append("projectName", getProjectName())
                .append("message", getMessage())
                .append("type", getType())
                .append("projectStartTime", getProjectStartTime())
                .append("projectEndTime", getProjectEndTime())
                .append("projectNewEndTime", getProjectNewEndTime())
                .append("projectFunding", getProjectFunding())
                .append("increaseFunding", getIncreaseFunding())
                .append("status", getStatus())
                .append("file", getFile())
                .append("delFlag", getDelFlag())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
